INT <name1>{= <expression1>, <name2>= <expression2>...)
INT Count
INT Count = 1
INT Count = 1, Test = FREECAP(Loc2)
Creates a local variable of type integer. Local variables work much the same as attributes, except that they only are available within the logic that declares them. A new variable will be created for each entity that encounters an INT statement. Local variables are not directly available to subroutines, which have their own local variables. However, a local variable may be passed to a subroutine as a parameter. Local variables are available inside referenced macros.
Use local variables where ever possible for the test variable in WHILE...DO, DO...WHILE, and DO...UNTIL loops.
Any logic. Variables declared with INT are valid in any expression within the logic where a normal integer number is valid.
<names>
An identifier for the local variable. This identifier must be a valid name.
<expressions>
The variable will initially be assigned this value. This expression is evaluated every time the INT statement is encountered.
Process Table
Entity... |
Location... |
Operation (min)... |
Pipe |
Inspect |
WAIT 5 |
Box |
Dock |
INT X= b_type LOAD 5 IFF X=p_type |
Box |
Dock |
WAIT 10 |
Routing Table
Blk |
Output... |
Destination... |
Rule... |
Move Logic... |
1 |
Pipe |
Dock |
LOAD 1 |
MOVE FOR 2 |
|
|
|
|
|
1 |
Box |
Delivery |
FIRST 1 |
MOVE FOR 8 |
See Also
REAL. Also see Local Variables.
![]() |
© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |